﻿@model zichan.Models.PutAndScrapModel
@{
    ViewBag.Title = "入库";
}

@section Pagetitle{
    @AdminCommon.PageTitle("入库", "编辑")
}
@section header{
    <style>
        .control-label {
            text-align: right;
        }
    </style>
}
<div class="portlet-body form">
    <div class="form-body">
        <div class="row">
            @Html.Action("MessagePage", "Common", new { id = Model.AssetId })
            @if (Model.AssetClassId == 1)
            {
                @Html.Action("partServer_Message", "Common", new { id = Model.AssetId })
            }
            else
            {
                @Html.Action("part_Message", "Common", new { id = Model.AssetId })
            }
        </div>
        @if (zichan.Common.PowerHelp.Check("RepertoryManage", "PutWareHouse"))
        {<div class="portlet">
            <div class="portlet-title">
                <div class="caption ">
                    <i class="fa fa-table"></i>入库操作
                </div>
            </div>
            <div class="portlet-body">
                <div class="table-container">
                    <div class="dataTables_wrapper dataTables_extended_wrapper no-footer">
                            @using (Html.BeginForm("PutWareHouse", "RepertoryManage", FormMethod.Post, new { @class = "form-horizontal" }))
                            {<div class="form-body">
                                <input type="hidden" name="AssetId" value="@Model.AssetId" />
                                <div class="form-group ">
                                    <label class="col-md-3 control-label">入库原因或备注:</label>
                                    <div class="col-md-9">
                                        @Html.TextAreaFor(o => o.Remark, new { @class = "form-control input-large" })
                                    </div>
                                </div>
                                 <div class="row" style="margin-top:5px;">
                                     <div class="col-md-offset-3 col-md-9">
                                         <button type="submit" class="btn green">提交</button>
                                         <a href="/RepertoryManage/Index" class="btn default">返回</a>
                                     </div>
                                 </div>
                            </div>}
                    </div>
                </div>
            </div>
        </div>
        }
    </div>
</div>

